<template>
  <div class="worth_buying">
    <header>
      <div class="search">
        <div class="log">
          <img src="../../public/images/img/arrow_left.png" alt="" />
        </div>
        <div class="sear">值得买</div>
        <div class="cai">
          <img src="../../public/images/img/menu.png" alt="" />
        </div>
      </div>
    </header>
    <nav>
      <div class="nav-top">
        <ul>
          <li><img src="../../public/images/img/lis1.png" alt="" /></li>
          <li><img src="../../public/images/img/lis2.png" alt="" /></li>
          <li><img src="../../public/images/img/lis3.png" alt="" /></li>
          <li><img src="../../public/images/img/lis4.png" alt="" /></li>
          <li><img src="../../public/images/img/li5.png" alt="" /></li>
          <li><img src="../../public/images/img/lis6.png" alt="" /></li>
          <li><img src="../../public/images/img/l7.png" alt="" /></li>
          <li><img src="../../public/images/img/li8.png" alt="" /></li>
          <li><img src="../../public/images/img/li9.png" alt="" /></li>
          <li><img src="../../public/images/img/li10.png" alt="" /></li>
        </ul>
      </div>
    </nav>
    <main>
      <div class="feed">
        <section>
          <div class="title">
            <h2>促销专场</h2>
            <span>更多 <img src="" alt="" /></span>
          </div>
          <div class="promotion">
            <div class="item">
              <h2>10.1-10.8 图书当当</h2>
              <h3>每满100减50</h3>
              <img src="../../public/images/值得买/ia_100000018.jpg" alt="" />
            </div>
            <div class="item">
              <h2>10.1-10.8 图书当当</h2>
              <h3>10月49元5件&88元10件</h3>
              <img src="../../public/images/值得买/ia_100000017.jpg" alt="" />
            </div>
            <div class="item">
              <h2>10.1-10.8 图书当当</h2>
              <h3>每满79减30</h3>
              <img src="../../public/images/值得买/ia_100000023.jpg" alt="" />
            </div>
            <div class="item">
              <h3>电子书49元5书</h3>
              <img src="../../public/images/值得买/ia_100000030.jpg" alt="" />
            </div>
            <div class="item">
              <h3>10月88元5件</h3>
              <img src="../../public/images/值得买/ia_100000018.jpg" alt="" />
            </div>
            <div class="item">
              <h3>迪士尼2件2.8折</h3>
              <img src="../../public/images/值得买/ia_100000017.jpg" alt="" />
            </div>
          </div>
        </section>
        <section v-if="0">
          <div class="title">
            <h2>即可秒杀</h2>
            <span>更多 <img src="" alt="" /></span>
          </div>
          <div class="promotion">
            <div class="item">
              <img src="../../public/images/img/jike.jpg" alt="" />
            </div>
            <div class="item">
              <img src="../../public/images/img/jike.jpg" alt="" />
            </div>
            <div class="item">
              <img src="../../public/images/img/jike.jpg" alt="" />
            </div>
          </div>
        </section>
      </div>
    </main>
      <enjoy-list></enjoy-list>
    <footer-nav></footer-nav>
  </div>
</template>

<script>
import EnjoyList from '../components/EnjoyList.vue';

import FooterNav from "../components/FooterNav.vue";
export default {
  components: { FooterNav, EnjoyList },};
</script>

<style lang="scss" scoped>
.worth_buying {
  .search {
    height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d8d8d8;
    box-sizing: border-box;
    .log {
      width: 40px;
      height: 39.5px;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        width: 10px;
        height: 17px;
      }
    }
    .cai {
      width: 40px;
      height: 39.5px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-left: 8px;
      img {
        width: 21px;
        height: 7px;
      }
    }
    .sear {
      height: 100%;
      flex: 1;
      display: flex;
      align-items: center;
      font-size: 17px;
      justify-content: center;
      color: #333;
      i {
        width: 14px;
        height: 14px;
        display: block;
        margin: 0 9px;
        font-weight: bold;
        color: #767b83;
      }
      span {
        color: #999999;
        font-size: 14px;
      }
    }
  }
  .nav-top {
    ul {
      display: flex;
      flex-wrap: wrap;
      li {
        width: 74px;
        height: 74px;
        border-bottom: 1px solid #efe;
        border-right: 1px solid #efe;
        &:nth-child(5n) {
          border-right: none;
        }
        &:nth-child(n + 6) {
          border-bottom: none;
        }
      }
      img {
        width: 100%;
        display: block;
      }
    }
  }
  main {
    .feed {
      section {
        background: #fff;
        background-image: url("../../public/images/值得买/ia_100000070.png");
        background-size: cover;
        padding: 0 12px 12px;
        .title {
          display: flex;
          align-items: flex-end;
          padding: 16.5px 0 5px;
          h2 {
            font-size: 18px;
            color: #fff;
            flex: 1;
            font-weight: bold;
            text-align: center;
          }
          span {
            color: #fff;
            font-size: 13px;
            display: flex;
            align-items: center;
          }
        }
        .promotion {
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
          .item {
            width: 32%;
            margin-top: 6px;
            padding: 10px 10px 5px;
            border-radius: 8px;
            background-color: #fff;
            box-sizing: border-box;
            text-align: center;
          }
        }
        &:nth-child(2) {
          background-image: url("../../public/images/值得买/ia_100000071.png");
        }
      }
    }
  }
  .feed {
    section {
      .promotion {
        .item {
          h2 {
            font-size: 15px;
            color: #565656;
            font-weight: normal;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          h3 {
            font-weight: normal;
            color: #943dff;
            font-size: 14px;
          }
          img {
            width: 80%;
            margin-top: 12px;
          }
        }
      }
    }
  }
}
</style>